<template>
  <div>vuex - {{ count }}</div>
  <Child1 />
  <Child2 />
</template>

<script>
import Child1 from "./components/Child1.vue";
import Child2 from "./components/Child2.vue";

export default {
  components: {
    Child1,
    Child2,
  },
  computed: {
    count() {
      return this.$store.state.count;
    },
  },
};
</script>
